// 导入封装的请求实例
import request from '@/utils/request'
// 请求方法
// 全部
export const getYddArticleAllApi = () => {
  return request({
    url: '/admin/ydd_article/all',
    method: 'get'
  })
}
// 列表
export const getYddArticleListApi = params => {
  return request({
    url: '/admin/ydd_article/list',
    method: 'get',
    params
  })
}

// 添加
export const addYddArticleInfoApi = data => {
  return request({
    url: '/admin/ydd_article/add',
    method: 'post',
    data
  })
}
// 修改
export const updateYddArticleInfoApi = data => {
  return request({
    url: '/admin/ydd_article/update',
    method: 'post',
    data
  })
}
// 查询单个
export const getYddArticleInfoApi = params => {
  return request({
    url: '/admin/ydd_article/rowInfo',
    method: 'get',
    params
  })
}
// 删除
export const delYddArticleInfoApi = params => {
  return request({
    url: '/admin/ydd_article/del',
    method: 'get',
    params
  })
}
